<?php
/**
 * gpa_new Description
 * @package
 * @name Cookie
 * @filesource Cookie.php
 * @author Meta Sanjaya
 */

class Cookie
{
    private $_cookie;

    /**
     * @access public
     * @method __construct
     * @param void
     * @return void
     */
    public function  __construct()
    {
        $this->_cookie =& $_COOKIE;
    }

    public function set($name, $value)
    {
        setcookie($name, $value, 0, "/", "", false, true);
    }

    public function remove($name)
    {
        setcookie($name, null, -1, "/", "", false, true);
    }

    public function get($name)
    {
        return(isset($this->_cookie[$name])?$this->_cookie[$name]:false);
    }
}

?>